let mix = require('laravel-mix');

/*
 |--------------------------------------------------------------------------
 | Mix Asset Management
 |--------------------------------------------------------------------------
 |
 | Mix provides a clean, fluent API for defining some Webpack build steps
 | for your Laravel application. By default, we are compiling the Sass
 | file for the application as well as bundling up all the JS files.
 |
 */

mix.js('resources/assets/js/app.js', 'public/js')
   .extract(['jquery', 'marked', 'jquery-slimscroll', 'bootstrap-datepicker', 'select2', 'bootstrap-switch',
                'bootstrap-sass', 'admin-lte', 'axios', 'vue', 'dropzone'])
   .autoload({
       jquery: ['jQuery', '$']
    })
   .sass('resources/assets/sass/app.scss', 'public/css')
   .sass('resources/assets/sass/backend.scss', 'public/css/backend.css')
   .sass('resources/assets/sass/blog.scss', 'public/css/blog.css')
   .combine([
        'public/css/app.css',
        'public/css/backend.css'
    ], 'public/css/backend-all.css')
   .combine([
        'public/css/app.css',
        'public/css/blog.css'
    ], 'public/css/blog-all.css')
   .sourceMaps()
   .version();
